package com.hps.demo.controller;


import com.hps.demo.service.IUserService;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author heps
 * @since 2020-10-27
 */
@RestController
@RequestMapping("/user")
public class UserController {

  @Resource
  private IUserService userService;

  @GetMapping("/init-users")
  public String initUsers(Integer count) {
    userService.initData(count);
    return "success";
  }
}
